<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>首页</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui-slide.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui-pull-refresh.css" />
    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
</head>
<style>
    html,body{
        font-size: 10px;
    }

    #container{
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
    }
    .footer{
        width: 100%;
        height: 10.15rem;
        position: fixed;
        bottom: 0;
        z-index: 2;
        background: linear-gradient(rgba(255,255,255,0.1),rgba(255,255,255,0.8),rgba(255,255,255,0.8),#fff); /* Safari 5.1 - 6.0 */
        background: -webkit-linear-gradient(rgba(255,255,255,0.1),rgba(255,255,255,0.8),rgba(255,255,255,0.8),#fff); /* Safari 5.1 - 6.0 */
    }
    .anchorBL{
        display: none;
    }
    .fun{
        position: absolute;
        width: 3.75rem;
        height: 3.75rem;
        background-color: #ffffff;
        box-shadow: 0rem 0rem 0.7rem 0.3rem
            rgba(57, 56, 56, 0.1);
        border-radius: 0.5rem;
    }
    .qr_code{
        position: absolute;
        width: 16rem;
    	height: 8.2rem;
    	background-color: #ffffff;
    	box-shadow: 0rem 0.25rem 1.25rem 0rem
    		rgba(28, 146, 219, 0.35);
    	border-radius: 4.1rem;
        left: 0;
        right: 0;
        margin: auto;
    	/*opacity: 0.35;*/
    }
    .user{
        top: 4.75rem;
        left: 0.75rem;
    }
    .massage{
        top: 4.75rem;
        right: 0.75rem;
    }
    .qr_code_btn{
        width: 14.85rem;
    	height: 7.1rem;
    	background-color: #0a87ff;
    	border-radius: 3.55rem;
        margin:0.5rem auto;
    	color: #fafafa;
        line-height: 7.1rem;
        font-size: 1.7rem;
        text-align: center;
    }
    .qr_code_btn img{
        display: inline;
        margin: 0 1.2rem 0 0;
        width: 2.15rem;
	    height: 2.15rem;
        position: relative;
        top: 0.6rem;
    }
    .fun img{
        width: 100%;
        height: 100%;
    }
    .BMapLabel{
        width: 6.5rem;
        border-radius: 1rem;
        text-align: center;
    }
</style>
<body style="background: #f4f4f4;">
<div id="app">

    <!-- <div id="container"></div>

    <footer class="footer">
        <div class="fun user"@click="login('login','login/login','')">
            <img src="../../image/user.png" alt="">
        </div>
        <div class="qr_code">
            <div class="qr_code_btn">
                <img src="../../image/qr.png" alt="">扫码开机
            </div>
        </div>
        <div class="fun massage">
            <img src="../../image/bell.png" alt="">
        </div>
    </footer> -->
</div>
</body>
</html>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/zepto.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript" src="../../script/aui-tab.js"></script>
<script type="text/javascript" src="../../script/aui-scroll.js"></script>
<script type="text/javascript" src="../../script/aui-slide.js"></script>
<script type="text/javascript" src="../../script/aui-pull-refresh.js"></script>
<script type="text/javascript">
    apiready = function() {
        // alert(api.winHeight)
        api.openFrame({
          name: "头部",
          url: '../header/index_header.html',
          rect: {
            x:0,
            y:0,
            w:'auto',
            h:'74.5'
          },
          pageParam: {
              name: "头部",
              code: api.pageParam.code || '',
              password: api.pageParam.password || '',
              data: api.pageParam.data || '',
              zh_type: api.pageParam.zh_type || ''
          },
        })
        api.openFrame({
          name: "底部",
          url: '../footer/index_footer.html',
          rect: {
            x:0,
            y:api.winHeight-101.5,
            w:'auto',
            h:'101.5'
          },
          pageParam: {
              name: "底部",
              code: api.pageParam.code || '',
              password: api.pageParam.password || '',
              data: api.pageParam.data || '',
              zh_type: api.pageParam.zh_type || ''
          },
        })
        var aMap = api.require('aMap');
        aMap.open({
            rect: {
                x: 0,
                y: 0,
                w: "100%",
                h: "100%"
            },
            showUserLocation: true,
            zoomLevel: 11,
            center: {
                lon: 116.4021310000,
                lat: 39.9994480000
            },
            fixedOn: api.frameName,
            fixed: true
        }, function(ret, err) {
            if (ret.status) {
                // alert(JSON.stringify(ret));
            } else {
                // alert(JSON.stringify(err));
            }
        });

    }
    new Vue({
        el: "#app",
        data: {

        },
        methods: {
            busFun:function(name,page,type){
                api.openWin({
                    name: name,
                    url: '../header/index_header.html',
                    pageParam: {
                        name: page,
                        type:type
                    }
                });
            },
            login:function(name,page,type){
                api.openWin({
                    name: name,
                    url: '../header/login_header.html',
                    pageParam: {
                        name: page,
                        type:type
                    }
                });
            },
        },
    })

    // //百度地图
    // var map = new BMap.Map("container");
    // // 创建地图实例
    // var point = new BMap.Point(116.404, 39.915);
    // // 创建点坐标
    // map.centerAndZoom(point, 15);
    // // 初始化地图，设置中心点坐标和地图级别
    //
    // // 编写自定义函数,创建标注
    // var myIcon = new BMap.Icon("../../image/sign.png", new BMap.Size(26.5,32.5));
    // function addMarker(point,label){
    //   var marker = new BMap.Marker(point,{icon:myIcon});
    //   map.addOverlay(marker);
    //   marker.setLabel(label);
    // }
    // // 随机向地图添加25个标注
    // // 随机向地图添加25个标注
    // var bounds = map.getBounds();
    // var sw = bounds.getSouthWest();
    // var ne = bounds.getNorthEast();
    // var lngSpan = Math.abs(sw.lng - ne.lng);
    // var latSpan = Math.abs(ne.lat - sw.lat);
    // for (var i = 0; i < 10; i++) {
    //     var point = new BMap.Point(sw.lng + lngSpan * (Math.random() * 0.7), ne.lat - latSpan * (Math.random() * 0.7));
    //     var label = new BMap.Label("麻将店铺"+i,{offset:new BMap.Size(-18,35)});
    //     label.setStyle({
    //          color : "#333333",
    //          fontSize : "1rem",
    //          heigth:"1.5rem",
    //          lineHeight:"1.5rem",
    //          border:"0.05rem solid black",
    //      });
    //     addMarker(point,label);
    // }

</script>
